<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Collision Checker: cpp/collision/include/collision/serialize/vector2d_export.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Collision Checker
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_df511e5bd85cec96854b39d5e1c27aa8.html">cpp</a></li><li class="navelem"><a class="el" href="dir_bf0f0c8865c1942e08ab5157e2c596db.html">collision</a></li><li class="navelem"><a class="el" href="dir_0695118b3b27d100933d16472a5a2e05.html">include</a></li><li class="navelem"><a class="el" href="dir_d28884e0e9991dd74831dd1628ef4f1a.html">collision</a></li><li class="navelem"><a class="el" href="dir_efc7c79ffa5400fa0701d0d9c272cef1.html">serialize</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">vector2d_export.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="vector2d__export_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// warning: to be included only with a serialize_.cc file: unsafe streaming</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// operator redefinition for a generic version see also:</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">// https://stackoverflow.com/questions/20786220/eigen-library-initialize-matrix-with-data-from-file-or-existing-stdvector</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;Eigen/Dense&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;istream&gt;</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="vector2d__export_8h.html#af1013a56d9457d0d05e6358462335be3">   10</a></span>&#160;std::istream &amp;<a class="code" href="vector2d__export_8h.html#af1013a56d9457d0d05e6358462335be3">operator&gt;&gt;</a>(std::istream &amp;in, Eigen::Vector2d &amp;vec) {</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;  in &gt;&gt; vec[0];</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;  in &gt;&gt; vec[1];</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;  <span class="keywordflow">return</span> in;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;}</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="vector2d__export_8h.html#ae57ff35beadbf6d9e23eee158f05910d">   17</a></span>&#160;std::ostream &amp;<a class="code" href="vector2d__export_8h.html#ae57ff35beadbf6d9e23eee158f05910d">operator&lt;&lt;</a>(std::ostream &amp;out, <span class="keyword">const</span> Eigen::Vector2d &amp;vec) {</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;  out &lt;&lt; vec[0];</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;  out &lt;&lt; <span class="stringliteral">&quot; &quot;</span>;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;  out &lt;&lt; vec[1];</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;  <span class="keywordflow">return</span> out;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;}</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="vector2d__export_8h.html#a18b61d4124a48321315b50aa5bdfef79">   24</a></span>&#160;<span class="preprocessor">#define S11N_TYPE Eigen::Vector2d</span></div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="vector2d__export_8h.html#a9a83f14c2be81ead816de66ffd946893">   25</a></span>&#160;<span class="preprocessor">#define S11N_TYPE_NAME &quot;vector2d&quot;</span></div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="vector2d__export_8h.html#a4adc75216e99da21a37d9373f3979022">   26</a></span>&#160;<span class="preprocessor">#define S11N_SERIALIZE_FUNCTOR s11n::streamable_type_serialization_proxy</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;s11n.net/s11n/reg_s11n_traits.hpp&gt;</span></div><div class="ttc" id="vector2d__export_8h_html_af1013a56d9457d0d05e6358462335be3"><div class="ttname"><a href="vector2d__export_8h.html#af1013a56d9457d0d05e6358462335be3">operator&gt;&gt;</a></div><div class="ttdeci">std::istream &amp; operator&gt;&gt;(std::istream &amp;in, Eigen::Vector2d &amp;vec)</div><div class="ttdef"><b>Definition:</b> <a href="vector2d__export_8h_source.html#l00010">vector2d_export.h:10</a></div></div>
<div class="ttc" id="vector2d__export_8h_html_ae57ff35beadbf6d9e23eee158f05910d"><div class="ttname"><a href="vector2d__export_8h.html#ae57ff35beadbf6d9e23eee158f05910d">operator&lt;&lt;</a></div><div class="ttdeci">std::ostream &amp; operator&lt;&lt;(std::ostream &amp;out, const Eigen::Vector2d &amp;vec)</div><div class="ttdef"><b>Definition:</b> <a href="vector2d__export_8h_source.html#l00017">vector2d_export.h:17</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
